﻿using MediatR;
using T.Common.Domain.Common;
using RedDragon.Common.Dtos;
namespace RedDragon.RBAC.API.Application.Common.Permission
{
    /// <summary>
    /// 权限查询条件
    /// </summary>
    public class QueryPermissionsCommand:IRequest<Result<PageResultDto<PermissionsDto>>>
    {
        /// <summary>
        /// 权限编号
        /// </summary>
        public string? PermissionCoding { get; set; }
        /// <summary>
        /// 权限名称
        /// </summary>
        public string? PermissionName { get; set; }
        /// <summary>
        /// 权限分类id
        /// </summary>
        public int PermissionTypeId { get; set; }
        /// <summary>
        /// 状态 0-有效；1-无效
        /// </summary>
        public int? PermissionState { get; set; }

        /// <summary>
        /// 当前第几页
        /// </summary>
        public int PageIndex {  get; set; }

        /// <summary>
        /// 每页显示几条
        /// </summary>
        public int PageSize {  get; set; }
    }
}
